<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Authenticated_Controller extends MY_Controller{
	function __construct() {
		parent::__construct();
		if(! $this->is_login()){
			redirect(AUTH);
		}
	}
	
	private function is_login(){
		return $this->access->is_login();
	}
	
}

class MY_Controller extends CI_Controller{
	function __construct() {
		parent::__construct();
	}
}
